export default [
    {
        path: '/:pathMatch(.*)*',
        meta: { title: '404页面不存在' },
        component: () => import('@/views/404.vue'),
    },
    {
        path: '/',
        meta: { title: '框架页', parentPath: '/' },
        component: () => import('@/views/Index.vue'),
        redirect: "/home",
        children: [
            {
                path: 'home',
                meta: { title: '首页', parentPath: '/' },
                component: () => import('@/views/Home.vue'),
            },
            {
                path: 'category',
                meta: { title: '分类', parentPath: '/' },
                component: () => import('@/views/Category.vue'),
            },
            {
                path: 'category/:categoryId',
                meta: { title: '分类博客', parentPath: '/' },
                component: () => import('@/views/modules/CategoryModules/CategoryBlogList.vue'),
            },
            {
                path: 'blog/:blogId',
                meta: { title: '博客详情', parentPath: '/' },
                component: () => import('@/views/BlogDetail.vue'),
            },
            {
                path: 'special',
                meta: { title: '专题', parentPath: '/' },
                component: () => import('@/views/Special.vue'),
            },
            {
                path: 'special/:blogId',
                meta: { title: '专题博客', parentPath: '/' },
                component: () => import('@/views/modules/SpecialModules/SpecialBlog.vue'),
            },
            {
                path: 'user',
                meta: { title: '成员', parentPath: '/' },
                component: () => import('@/views/User.vue'),
            },
            // {
            //     path: 'comment',
            //     meta: { title: '留言', parentPath: '/' },
            //     component: () => import('@/views/Comment.vue'),
            // },
            {
                path: 'code',
                mata: { title: '低代码(测试)', parentPath: '/' },
                component: () => import('@/views/Code.vue'),
            }
        ]
    },

]
